package com.reason.user.service.impl;


import com.reason.user.dao.ConditionMapper;
import com.reason.user.pojo.Condition;
import com.reason.user.service.ConditionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @author  yulongjun
 * @date 2020/6/29 10:42 下午
 */
@Service
public class ConditionServiceImpl implements ConditionService {
    @Autowired
    private ConditionMapper selectionMapper;

    @Override
    public List<Condition> findALl() {
      return   selectionMapper.selectList(null);
    }

    @Override
    public Condition findByID(Long id) {
       return selectionMapper.selectById(id);

    }
}
